/**
 * 
 */
package com.yishuki.bluewhale;

/**
 * @author yhzhu
 *
 */
public class YishukiException extends Exception{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6166368354921007474L;

	private int errCode;
	
	public YishukiException() {
		super();
	}

	public YishukiException(int errCode) {
		super(ErrorCodeMsg.getErrMsg(errCode));
		this.errCode = errCode;
	}

	public YishukiException(int errCode, String errMsg) {
		super(errMsg);
		this.errCode = errCode;
	}

	public YishukiException(int errCode, String message, Throwable cause) {
		super(message, cause);
		this.errCode = errCode;
	}

	public YishukiException(int errCode, Exception e) {
		super(e);
		this.errCode = errCode;
	}

	public int getErrCode() {
		return errCode;
	}

	public void setErrCode(int errCode) {
		this.errCode = errCode;
	}

}
